package com.shopcart.request;

import javax.ejb.Stateful;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import com.shopcart.entity.Customer;
import com.shopcart.entity.CartItem;

@Stateful(name = "CartControllerBean", mappedName = "ejb/CartControllerBean")
public class CartControllerBean implements CartController {
	@PersistenceContext
	private EntityManager em;
	private Long cartId;

	public CartControllerBean() {
	}

	@Override
	public void addItem(Customer customer, CartItem item) {
		System.out.println("Adding item");
	}
}